package com.kurumi.medical.model;

import java.math.BigDecimal;
import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.kurumi.medical.util.StringUtil;

/**
 * 抗菌药物明细
 * @author lyh
 *
 */
public class HospitalVisitAntibacterialDrugRecord {

	/**
	 * 抗菌药物目的编号
	 */
	private String antibacterialDrugPurposeCode;
	
	/**
	 * 抗菌药物目的名称
	 */
	private String antibacterialDrugPurposeName;
	
	/**
	 * 抗菌药物方案编号
	 */
	private String antibacterialDrugRegimenCode;
	
	/**
	 * 抗菌药物方案名称
	 */
	private String antibacterialDrugRegimenName;
	
	/**
	 * 病原体编号
	 */
	private String pathogenCode;
	
	/**
	 * 病原体名称
	 */
	private String pathogenName;
	
	
	/**
     * 药物开始时间
     */
	@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date drugStartDateTime;
	
	
	/**
     * 药物结束时间
     */
	@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date drugEndDateTime;
	
	/**
	 * 药物消耗量
	 */
	private BigDecimal drugConsumption;
	
	/**
	 * 出血量≥1500毫升追加1剂编号
	 */
	private String hemorrhageAddDrug1Code;
	
	/**
	 * 出血量≥1500毫升追加1剂名称
	 */
	private String hemorrhageAddDrug1Name;
	
	/**
	 * 手术时间超过3小时追加1剂编号
	 */
	private String operateAddDrug1Code;
	
	/**
	 * 手术时间超过3小时追加1剂名称
	 */
	private String operateAddDrug1Name;
	
	/**
	 * 	医源性检测编号
	 */
	private String iatrogenicCheckCode;
	
	/**
	 * 	医源性检测名称
	 */
	private String iatrogenicCheckName;
	
	/**
	 * 用药分类编号
	 */
	private String antibacterialDrugClassificatoryCode;
	
	/**
	 * 用药分类名称
	 */
	private String antibacterialDrugClassificatoryName;
	
	/**
	 * 病原体检测标本编号
	 */
	private String pathogenyCheckSpecimenCode;
	
	/**
	 *病原体检测标本名称 
	 */
	private String pathogenyCheckSpecimenName;
	
	@JsonIgnore
    public boolean isEmpty(){
    	if(this.getAntibacterialDrugPurposeName() == null && this.getPathogenName() == null
    			&& this.getPathogenyCheckSpecimenName() == null){
    		return true;
    	}
    	return false;
    }

	public String getAntibacterialDrugPurposeCode() {
		return StringUtil.meaningStr(antibacterialDrugPurposeCode);
	}

	public void setAntibacterialDrugPurposeCode(String antibacterialDrugPurposeCode) {
		this.antibacterialDrugPurposeCode = antibacterialDrugPurposeCode;
	}

	public String getAntibacterialDrugPurposeName() {
		return StringUtil.meaningStr(antibacterialDrugPurposeName);
	}

	public void setAntibacterialDrugPurposeName(String antibacterialDrugPurposeName) {
		this.antibacterialDrugPurposeName = antibacterialDrugPurposeName;
	}

	public String getAntibacterialDrugRegimenCode() {
		return StringUtil.meaningStr(antibacterialDrugRegimenCode);
	}

	public void setAntibacterialDrugRegimenCode(String antibacterialDrugRegimenCode) {
		this.antibacterialDrugRegimenCode = antibacterialDrugRegimenCode;
	}

	public String getAntibacterialDrugRegimenName() {
		return StringUtil.meaningStr(antibacterialDrugRegimenName);
	}

	public void setAntibacterialDrugRegimenName(String antibacterialDrugRegimenName) {
		this.antibacterialDrugRegimenName = antibacterialDrugRegimenName;
	}

	public String getPathogenCode() {
		return StringUtil.meaningStr(pathogenCode);
	}

	public void setPathogenCode(String pathogenCode) {
		this.pathogenCode = pathogenCode;
	}

	public String getPathogenName() {
		return StringUtil.meaningStr(pathogenName);
	}

	public void setPathogenName(String pathogenName) {
		this.pathogenName = pathogenName;
	}

	public Date getDrugStartDateTime() {
		return drugStartDateTime;
	}

	public void setDrugStartDateTime(Date drugStartDateTime) {
		this.drugStartDateTime = drugStartDateTime;
	}

	public Date getDrugEndDateTime() {
		return drugEndDateTime;
	}

	public void setDrugEndDateTime(Date drugEndDateTime) {
		this.drugEndDateTime = drugEndDateTime;
	}

	public BigDecimal getDrugConsumption() {
		return drugConsumption;
	}

	public void setDrugConsumption(BigDecimal drugConsumption) {
		this.drugConsumption = drugConsumption;
	}

	public String getHemorrhageAddDrug1Code() {
		return StringUtil.meaningStr(hemorrhageAddDrug1Code);
	}

	public void setHemorrhageAddDrug1Code(String hemorrhageAddDrug1Code) {
		this.hemorrhageAddDrug1Code = hemorrhageAddDrug1Code;
	}

	public String getHemorrhageAddDrug1Name() {
		return StringUtil.meaningStr(hemorrhageAddDrug1Name);
	}

	public void setHemorrhageAddDrug1Name(String hemorrhageAddDrug1Name) {
		this.hemorrhageAddDrug1Name = hemorrhageAddDrug1Name;
	}

	public String getOperateAddDrug1Code() {
		return StringUtil.meaningStr(operateAddDrug1Code);
	}

	public void setOperateAddDrug1Code(String operateAddDrug1Code) {
		this.operateAddDrug1Code = operateAddDrug1Code;
	}

	public String getOperateAddDrug1Name() {
		return StringUtil.meaningStr(operateAddDrug1Name);
	}

	public void setOperateAddDrug1Name(String operateAddDrug1Name) {
		this.operateAddDrug1Name = operateAddDrug1Name;
	}

	public String getIatrogenicCheckCode() {
		return StringUtil.meaningStr(iatrogenicCheckCode);
	}

	public void setIatrogenicCheckCode(String iatrogenicCheckCode) {
		this.iatrogenicCheckCode = iatrogenicCheckCode;
	}

	public String getIatrogenicCheckName() {
		return StringUtil.meaningStr(iatrogenicCheckName);
	}

	public void setIatrogenicCheckName(String iatrogenicCheckName) {
		this.iatrogenicCheckName = iatrogenicCheckName;
	}

	
	public String getAntibacterialDrugClassificatoryCode() {
		return StringUtil.meaningStr(antibacterialDrugClassificatoryCode);
	}

	public void setAntibacterialDrugClassificatoryCode(
			String antibacterialDrugClassificatoryCode) {
		this.antibacterialDrugClassificatoryCode = antibacterialDrugClassificatoryCode;
	}

	public String getAntibacterialDrugClassificatoryName() {
		return StringUtil.meaningStr(antibacterialDrugClassificatoryName);
	}

	public void setAntibacterialDrugClassificatoryName(
			String antibacterialDrugClassificatoryName) {
		this.antibacterialDrugClassificatoryName = antibacterialDrugClassificatoryName;
	}

	public String getPathogenyCheckSpecimenCode() {
		return StringUtil.meaningStr(pathogenyCheckSpecimenCode);
	}

	public void setPathogenyCheckSpecimenCode(String pathogenyCheckSpecimenCode) {
		this.pathogenyCheckSpecimenCode = pathogenyCheckSpecimenCode;
	}

	public String getPathogenyCheckSpecimenName() {
		return StringUtil.meaningStr(pathogenyCheckSpecimenName);
	}

	public void setPathogenyCheckSpecimenName(String pathogenyCheckSpecimenName) {
		this.pathogenyCheckSpecimenName = pathogenyCheckSpecimenName;
	}

	
	
	
	
}
